from flask_script import Command

class Hello(Command):
    "prints hello world"

    def run(self):
        print("hello world")

manager.add_command('hello', Hello())